//
//  KeyboardButtonController.m
//  CocoaSynth
//
//  Created by Jérémy Brault on 03/03/10.
//  Copyright 2010 None. All rights reserved.
//

#import "KeyboardButtonController.h"

#import "KeyboardViewController.h"

@implementation KeyboardButtonController

@synthesize noteFrequency, keyboardViewController;

- (void)mouseDown:(NSEvent*)theEvent
{
	[keyboardViewController notePlayed:noteFrequency];
}

- (void)mouseUp:(NSEvent*)theEvent
{
	[keyboardViewController notePlayed:0];
	[super mouseUp:theEvent];
}

@end
